<%@page import="java.util.Date"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    
<!DOCTYPE html>
<html>
<head> 
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<c:if test="${5 lt 6 }">5 小于 6</c:if>
	<c:if test="${15 lt 6 }">15 小于 6</c:if>
	<br>
	<c:forEach begin="1" end="10" step="3" var="i">
		${i }
	</c:forEach>
	<c:forEach begin="1" end="10"  var="i">
		${i }
	</c:forEach>
	<%
		List<String> list=new ArrayList();

	list.add("aaa");
	list.add("bbb");
	list.add("ccc");
	list.add("ddd");
	list.add("eee");
	pageContext.setAttribute("list", list);
	
	Date day=new Date();
	float f=3.1415926f;
	pageContext.setAttribute("day", day);
	pageContext.setAttribute("f", f);
	
	%>
	<br>
	
	<c:forEach items="${list }" var="str">
		${str}
	</c:forEach>
	
	<br>
	今天是：${day }|<fmt:formatDate value="${day }" pattern="yyyy年MM月dd日 E"/>
	<br>
	f:${f }|<fmt:formatNumber value="${f }" pattern="#.##"></fmt:formatNumber>
	
</body>
</html>